<?php

function pagination()
{
	if(function_exists('wp_pagenavi'))
	{
		wp_pagenavi();
	}
	else
	{
		posts_nav_link();
	}
}